<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}

<div class="x-nav" style="height: 45px;">
	<span class="layui-breadcrumb">
		<a>首页</a>
		<a>彩票管理</a>
		<a>主玩法管理</a>
	</span>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
		<i class="layui-icon" style="line-height:30px">ဂ</i>
	</a>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin:3px 5px 0 0;float:right" href="{U('lottery/play', array('operation'=>'playmain_view'))}">
		<i class="layui-icon" style="line-height:30px;">新增主玩法</i>
	</a>
</div>

<div class="x-body">
	<form class="layui-form ajaxform" action="?" method="post">
		<input type="hidden" name="m" value="{$m}" />
		<input type="hidden" name="c" value="{$c}" />
		<input type="hidden" name="a" value="" />
		<table class="layui-table">
			<thead>
				<tr>
					<th width="10%">彩种类别</th>
					<th width="10%">主玩法名称</th>
					<th width="10%">标识代码</th>
					<th width="10%">状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			{loop $data as $k => $v}
				<tr>
					<td>{$cateIdKey[$v['cate_id']]['name']}</td>
					<td>{$v['title']}</td>
					<td>{$v['en_code']}</td>
					<td>{if $v['status'] == 1} 开放 {else} 关闭 {/if}</td>
					<td>
						<a href="{U('lottery/play', array('operation'=>'playfollow_list', 'cate_id' => $v['cate_id'], 'main_id' => $v['id']))}">从玩法</a> | 
						<a href="{U('lottery/play', array('operation'=>'playmain_view', 'id' => $v['id']))}">修改</a> | 
						<a href="{U('lottery/play', array('operation'=>'playmain_del', 'id' => $v['id']))}">删除</a>
					</td>
				</tr>
			{/loop}
			</tbody>
		</table>
		<div class="clearfix">
			<div id="pages" class="layui-laypage right">{$multi}</div>		
		</div>
	</form>
</div>

{template index/footer}